package com.alks.function.data.request.stockdept.pcfactorystockwork;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class CsmDetAddRequest {

    @ApiModelProperty(value = "出入库原因")
    private String slipReason;

    @NotNull(message = "送货时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "送货时间")
    private LocalDate slipDate;


    @ApiModelProperty(value = "厂商ID")
    private String vendorNo;

    @NotBlank(message = "厂商不能为空")
    @ApiModelProperty(value = "厂商名称")
    private String vendorName;

    @ApiModelProperty(value = "部门ID")
    private String deptNo;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出入库日期")
    private LocalDate sysDate;

    @NotBlank(message = "送货单号不能为空")
    @ApiModelProperty(value = "送货单号")
    private String sendNo;

}
